<link href="../addons/jy_yiliao/resource/css/weui.css" rel="stylesheet">
<link href="../addons/jy_yiliao/resource/css/zan.css?v=1" rel="stylesheet">
<link href="../addons/jy_yiliao/resource/css/yuyue.css" rel="stylesheet">
<style>
 body {
            position: static;
            height: auto;
            -webkit-overflow-scrolling: touch;
            background: #fff;
        }

        .weui-navbar .weui-navbar__item {
            background: #fff;
            padding: 15px 0;
            border-bottom: none;
            white-space: nowrap;
            font-size: 14px;
            position: relative;
            color: #333;
        }

        .weui-navbar .weui-navbar__item.lyb-active .weui-navbar__item__text {
            padding: 0;
            color: #C03E3E;
            background: transparent;
        }

        .weui-navbar .weui-navbar__item .weui-navbar__item__underline {
            height: 2px;
            width: 56px;
            position: absolute;
            left: 50%;
            bottom: 5px;
            -webkit-transform: translateX(-50%);
            transform: translateX(-50%);
            border-radius: 2px;
            background: #c03e3e;
            display: none;
        }

        .weui-navbar .weui-navbar__item.lyb-active .weui-navbar__item__underline {
            display: inline-block;
        }

        #medical_Record .table-view-cell:after {
            left: 20px;
        }

        .his-float-box {
            background: #790D0D;
        }

        .justify-content {
            display: -webkit-flex;
            -webkit-justify-content: space-between;
            display: flex;
            justify-content: space-between;
            padding: 8px 15px;
            position: relative;
        }

        .gray-background {
            border-color: #fff !important;
            color: #fff !important;
        }

        .service-flag {
            padding: 11px 15px;
        }

        .service-flag:before {
            content: '';
            position: absolute;
            width: 4px;
            height: 14px;
            top: 50%;
            -webkit-transform: translateY(-50%);
            -moz-transform: translateY(-50%);
            -ms-transform: translateY(-50%);
            -o-transform: translateY(-50%);
            transform: translateY(-50%);
            background: #e64340;
        }

        .weui-navbar__item:after {
            display: none;
        }

        .buy-btn, .buy-more-btn {
            color: #fff;
            line-height: 22px;
            border-radius: 2px !important;
            padding: 0;
            font-size: 12px;
            width: 64px !important;
            background: #C03E3E;
        }

        .buy-btn:after, .buy-more-btn:after {
            -webkit-border-radius: 2px !important;
            -moz-border-radius: 2px !important;
            border-radius: 2px !important;
            border: none;
        }

        #doctor_service > div, #doctor_more_service > div {
            position: relative;
        }

        #doctor_service > div:after, #doctor_more_service > div:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 10px;
            right: 10px;
            height: 1px;
            background: #e5e5e5;
            -webkit-transform: scaleY(0.5);
            transform: scaleY(0.5);
        }

        #doctor_service > div:last-child::after, #doctor_more_service > div:last-child::after {
            height: 0;
        }

        .dot {
            position: relative;
            padding: 0;
        }

        .dot:before {
            content: '';
            position: absolute;
            width: 6px;
            height: 6px;
            background: #DBAB7C 100%;
            -webkit-border-radius: 100%;
            border-radius: 100%;
            left: -12px;
            top: 50%;
            -webkit-transform: translateY(-50%);
            transform: translateY(-50%);
        }

        .care {
            position: absolute;
            top: 25px;
            left: 20px;
        }

        .share {
            border: none;
            background: transparent;
            color: #F2CB99;
            position: absolute;
            top: 25px;
            left: 52px;
        }

        #head_url {
            width: 60px;
            height: 60px;
            -webkit-border-radius: 50%;
            -moz-border-radius: 50%;
            border-radius: 50%;
            border: solid 2px #fff;
            vertical-align: top;
        }

        .card-link {
            display: inline-block;
        }

        .doctor-back {
            background: rgba(192, 62, 62, 0.06) url(//image-1252304461.file.myqcloud.com/image/yishengzhuyebj.png) no-repeat left top;
            background-size: 100% 100%;
            padding-bottom: 57px;
        }

        .weui-panel:before, .weui-panel:after {
            height: 0;
            border: none;
        }

        .illness-view .illness-item {
            padding: 6px 8px;
            display: inline-block;
            margin-right: 8px;
            margin-bottom: 8px;
            line-height: 1;
            background: transparent;
            border: 1px solid #ccc;
            border-radius: 2px;
            font-size: 12px;
            color: #666;
        }

        .weui-panel {
            margin-bottom: 20px;
        }

        .illness-view .illness-item.doctor-eval-item {
            padding: 3px 8px;
            -webkit-border-radius: 9px;
            border-radius: 9px;
            color: #999999;
        }

        .doctor-eval-head {
            vertical-align: middle;
            width: 24px;
            height: 24px;
            border-radius: 50%;
        }

        .doctor-eval-angle {
            position: absolute;
            top: 0;
            left: 18px;
            width: 0;
            height: 0;
            border-top: 12px solid #f7f7f7;
            border-right: 12px solid transparent;
            transform: rotate(45deg);
        }

        #evaluation_list .weui-panel:after {
            border: solid 1px #f2f2f2;
        }

        #evaluation_list.weui-panels .weui-panel:last-child {
            margin-bottom: 0 !important;
        }

        #evaluation_list.weui-panels .weui-panel:last-child::after {
            border: none;
        }

        .share-success {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 100;
            text-align: center;
        }

        .share-success .arrow {
            background: url('//image-1252304461.file.myqcloud.com/image/xiaoshou.png') no-repeat;
            position: absolute;
            width: 32px;
            height: 80px;
            right: 15px;
            top: 4px;
            background-size: 100%;
        }

        .share-success .mask {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.7);
        }

        .share-success .share-title {
            font-size: 18px;
            color: #fff;
            line-height: 26px;
            position: relative;
            padding: 0 20px;
        }

        .close {
            position: relative;
            border-radius: 16px;
            height: 32px;
            display: inline-block;
            width: 32px;
            margin-top: 20px;
        }

        .icon-close {
            background: url('//image-1252304461.file.myqcloud.com/image/guanbi_icon.png') no-repeat left top;
            background-size: 100%;
            height: 32px;
            display: inline-block;
            width: 32px;
        }

        .service-list {
            margin-top: -37px !important;
            overflow: hidden;
            box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.08);
        }

        .triangle-down {
            width: 0;
            height: 0;
            border-left: 5px solid transparent;
            border-right: 5px solid transparent;
            border-top: 5px solid #ccc;
            display: inline-block;
            position: relative;
            top: -1px;
        }

        .service-more {
            color: #ccc;
        }

        .service-more i {
            transition: all .3s;
        }

        .pop-title {
            background: url("//image-1252304461.file.myqcloud.com/image/popWin_title.png") left top no-repeat;
            background-size: 100% 100%;
            width: 142px;
            height: 53px;
            position: absolute;
            top: -18px;
            left: 50%;
            transform: translateX(-50%);
        }

        .more-color.more:after {
            border-color: #AE7747;
        }
        .gaofang_link a:nth-child(2){
            margin-left: 10px;
        }
        .weui-cell{
            padding: 0 12px;
        }
        .weui-cell:before{
            content: none;
        }

        .package img {
            width: 120px;
            height: 120px;
            vertical-align: top;
            border-radius: 4px 0 0 4px;
        }
        .package .right{
            padding: 14px 12px;
            height: 120px;
            background-color: #F7F7F7;
            border-radius: 0 4px 4px 0;
        }
        .lest {
            padding: 1px 0;
            color: #fff;
            /*white-space: nowrap;*/
        }

        .lest.full {
            color: #d9d9d9;
        }

        .hospital-border .lest {
            position: relative;
            line-height: 1;
            text-align: center;
        }

        .hospital-border .lest:after {
            content: '';
            position: absolute;
            height: 1px;
            bottom: -1px;
            left: 0;
            right: 0;
            background: #fff;
            -webkit-transform: scaleY(0.5);
            transform: scaleY(0.5);
            z-index: 1;
            display: none;
        }

        .hospital-border .lest:last-child::after {
            height: 0;
        }
        .tips-view {
            /* padding: 20px 12px; */
            padding: 0 12px;
            background: #FFFFFF;
            font-size: 13px;
            text-align: right;
            color: #666;
        }

        .tips-view span {
            position: relative;
            padding-left: 11px;
            margin-left: 10px;
        }

        @media screen and (max-width: 320px) {
            .tips-view span {
                margin-left: 0;
            }
        }

        .tips-view span:before {
            content: '';
            position: absolute;
            top: 50%;
            left: 0;
            width: 9px;
            height: 9px;
            -webkit-border-radius: 50%;
            border-radius: 50%;
            -webkit-transform: translateY(-50%);
            transform: translateY(-50%);
        }

        .tips-view-top {
            padding-bottom: 12px;
        }
        /* .tips-view-bottom {
            padding-top: 0;
            padding-bottom: 12px;
        } */

        .tips-view-top span:nth-child(1)::before {
            background: #059aeb;
        }

        .tips-view-top span:nth-child(2)::before {
            background: #A3C37A;
        }

        .tips-view-bottom span:nth-child(1)::before {
            background: #E6A85F;
        }

        .tips-view-bottom span:nth-child(2)::before {
            background: #ccc;
        }

		.award-btn {
			position: absolute;
			color: #DBAF78;
			top: 20px;
			right: 20px;
			border: 0;
			font-size: 14px;
			background-color: transparent;
			outline: none;   
		}
        #box .his-calendar {
            margin-bottom: 0;
        }
        .schedule-btn {
            text-align: center;
            padding: 10px 0;
            border: 1px solid #C03E3E;
            border-radius: 4px;
            width: 94%;
            color: #C03E3E;
            font-size: 18px;
            display: block;
            margin: 6px 3% 16px;
        }
        .science_popular_list_ul {
            display: flex;
            flex-direction: column;
        }
        .science_popular_list_ul .center {
            display: flex;
        }
        .science_popular_list_ul .li {
            padding: 12px 0 0 4px;
            position: relative;
        }
        .science_popular_list_ul .li::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            height: 1px;
            background-color: #F7F7F7;
            width: 100%;
        }
        .science_popular_list_ul .li:nth-last-child(1):after {
            height: 0;
        }
        .science_popular_list_ul .center li {
            margin-right: 13px;
            width: 33%;
            height: 72px;
            overflow: hidden;
        }
        .science_popular_list_ul .center li:nth-of-type(3) {
            margin-right: 0;
        }
        .science_popular_list_ul .center li img{
            width: 100%;
            border-radius: 4px;
        }
        .tags{
            width: 100%;
            padding: 10px;
        }
        .tags span{
            font-size: 13px;
            padding: 5px 10px;
            border:1px solid #cccccc;
            color: #777777;
            border-radius: 3px;
            display: inline-block;
            margin-right: 5px;
            margin-bottom: 10px;
        }
        .tag_checked{
            border-color: #C03E3E !important;
            color: #C03E3E !important;
        }
        .shine{color:red;}
</style>
<div class='fui-page fui-page-current'>
	<div class="weui-tab" id="lyb-0">
    <div class="weui-navbar weui-tab-titles" style="position:fixed;left: 0;right: 0;z-index: 1;">
        
		<a ng-class="{'weui-navbar__item':1, 'lyb-active':pagedata.type==2}" ng-click="pagedata.getlist(2,true)">
            <span class="weui-navbar__item__text">TA的文章</span>

        </a>
    </div>

	<div  class="weui-panels weui-tab-contents his-flex-grow" style="overflow-y:scroll;padding-bottom:2rem;margin-top: 46px;margin-bottom: 80px;">
        <div class="weui-navbar__panel lyb-active">
			<div ng-if="pagedata.list" class="fui-goods-group no">
				<div ng-repeat="item in pagedata.list" class="fui-goods-item" style="background:none">
						<div ng-click="access_json('jy_yiliao/worker_news//id='+item.id);" class="image" style="position:relative;height:6rem;width:6.6rem;background-image: url({{tomedia(item.image) ||'../core/resource/images/nopic.jpg'}})"></div>
						<div ng-click="access_json('jy_yiliao/worker_news//id='+item.id);" class="detail" style="padding-right:0.3rem">
								<div class="name bold" style="margin-top:0.4rem">
									{{item.title}}
								</div>
								<div class="subtitle overflow-h2" style="margin-bottom:0.4rem;font-size:0.6rem">
									{{item.desc}}
								</div>
								<div class="price" style="margin-top: 0.1rem">
									<span class="subtitle r-f" style="font-weight:400;font-size:0.6rem">{{item.readnum || 0}}次阅读</span>
								</div>
						</div>
				</div>
			</div>
			<div ng-if="!pagedata.loading && (!pagedata.list || pagedata.list.length<1)" class='content-empty'>
						<i class='icon icon-chakanpingjia' style="font-size:1.5rem"></i><br/>暂时没有任何文章
			</div>
		</div>
    </div>
</div>
</div>
<!--图片放大-->
<div ng-if="pagedata.show_bigimage"  class="popup">
	<div class="popup-body">
	<div class="popup-center">
		<div ng-click="pagedata.show_bigimage=false" class="image" style="border-radius: 2rem; height:18rem;background: url({{tomedia(pagedata.showimage)}}) no-repeat 50% 0;background-size:100%;background-position:center center">
		</div>
	</div>
	</div>
</div>
<div ng-include="sys_html('_footer')"></div>
<div ng-include="sys_html('common/_share')"></div>
<script type="text/javascript">
scope.pagedata.pay_submit=function(post,post_url,complete_url){
	scope.post_json(post_url,post,function(result){
		scope.pagedata.order_id=result.order_id;
		scope.$evalAsync();
		scope.tool.pay(result.pay_id,function(res){
				if(res.type=='success'){
					scope.message(res.message,'success','/online.log//payid='+result.pay_id);
				}else{
					scope.message(res.message,'success','/online.log//payid='+result.pay_id);
				}
		},'','',complete_url,complete_url);
	});
}
scope.pagedata.goodspay_submit=function(post,post_url,complete_url){
	scope.post_json(post_url,post,function(result){
		scope.pagedata.order_id=result.order_id;
		scope.$evalAsync();
		scope.tool.pay(result.pay_id,function(res){
				if(res.type=='success'){
					scope.message(res.message,'success','/worker_goods.log//payid='+result.pay_id);
				}else{
					scope.message(res.message,'success','/worker_goods.log//payid='+result.pay_id);
				}
		},'','',complete_url,complete_url);
	});
}
//获取关注
scope.pagedata.setlike=function(){
	var params={
		op:'like',
		callback:function(res){
		}
	};
	scope.post_json(params);
}
scope.pagedata.getlist=function(type,isnew){
	scope.pagedata.type=2;
	if(scope.pagedata.type==2){
		scope.tool.get_list('jy_yiliao/worker_news/getlist/workerid='+scope.pagedata.item.id,isnew);
	}else{
		scope.tool.get_list('jy_yiliao/worker_item/getpingjia/user_id='+scope.pagedata.item.id,isnew);
	}
}


scope.pagedata.scroll_bottom=function(){
	//scope.pagedata.getlist(2);
}
scope.pagedata.getlist(2);
scope.get('jy_yiliao/worker_goods/getlist/workerid='+scope.pagedata.item.id,function(res){
	scope.pagedata.worker_goods=res.list
	scope.$evalAsync();
});
//手机软键盘--搜索
$("body").keydown(function() {
    if (event.keyCode == "13") {
        $('#searchsub').click();
    }
});
</script>